AL SET SOUND DIRECTION

This function will set the direction of a sound. It takes 3 values which are put together as a 3D vector telling DarkAL which direction the sound is aiming or looking at. This only used for directional sounds where the outer and inner cone angles have been set.

  Syntax
AL SET SOUND DIRECTION soundNumber, x, y, z
  Parameters
soundNumber
Integer
The ID you want to use to create this sound.
x
Float
The X direction of the sound. This value ranges from -1.0 to 1.0.
y
Float
The Y direction of the sound. This value ranges from -1.0 to 1.0.
z
Float
The Z direction of the sound. This value ranges from -1.0 to 1.0.

  Returns

This function does not return a value.

  See also

DarkAL Functions Menu